package com.hnluchuan.staff.dto;

import com.hnluchuan.staff.model.Employee;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class EmployeeDTO extends Employee {
	private static final long serialVersionUID = 1L;

	/**
	 * 紧急联系人姓名
	 */
	private String contartName[];
	/**
	 * 关系
	 */
	private String contartRelation[];
	/**
	 * 联系人电话
	 */
	private String contartPhone[];
	/**
	 * 单位或住址
	 */
	private String contartAddress[];

//教育以及培训
	/**
	 * 培训起始时间
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@Column(name = "start")
	private Date start[];
	/**
	 * 培训结束时间
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@Column(name = "end")
	private Date end[];
	/**
	 * 专业
	 */
	private String educaMajor[];
	/**
	 * 学历
	 */
	private Integer record[];
	/**
	 * 证书
	 */
	private String certificate[];

	/**
	 * 工作单位
	 */
	private String company[];
	/**
	 * 工作
	 */
	private String work[];
	/**
	 * 职位
	 */
	private String exposition[];
	/**
	 * 离职原因
	 */

	private String reason[];
	/**
	 * 工作起始时间
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@Column(name = "start")
	private Date workStart[];
	/**
	 * 工作结束时间
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@Column(name = "end")
	private Date workEnd[];


	/**
	 * 家庭成员姓名
	 */
	private String familyname[];

	/**
	 * 与本人关系
	 */
	private String familyRelation[];

	/**
	 *联系方式
	 */
	private  String contact[];
	/**
	 * 年龄
	 */
	private  Integer familyage[];
	/**
	 * 工作单位
	 */
	private  String familycompany[];
	/**
	 * 工作职位
	 */
	private String familyposition[];


/*紧急联系人姓名*/
	public String[] getContartName() {
		return contartName;
	}

	public void setContartName(String[] contartName) {
		this.contartName = contartName;
	}
	/**联系人关系*/
	public String[] getContartRelation() {
		return contartRelation;
	}

	public void setContartRelation(String[] contartRelation) {
		this.contartRelation = contartRelation;
	}
	/**联系人电话*/
	public String[] getContartPhone() {
		return contartPhone;
	}

	public void setContartPhone(String[] contartPhone) {
		this.contartPhone = contartPhone;
	}
	/**联系人地址*/
	public String[] getContartAddress() {
		return contartAddress;
	}

	public void setContartAddress(String[] contartAddress) {
		this.contartAddress = contartAddress;
	}

//教育及培训/
	/**培训起始时间*/
	public Date[] getStart() {return start;}
	/**培训起始时间*/
	public void setStart(Date[] start) {this.start = start;}
	/**培训结束时间*/
	public Date[] getEnd() {return end;}
	/**培训结束时间*/
	public void setEnd(Date[] end) {this.end = end;}
	/**专业*/
	public String[] getEducaMajor() {return educaMajor;}
	/**专业*/
	public void setEducaMajor(String[] educaMajor) {this.educaMajor = educaMajor;}
	/**学历*/
	public Integer[] getRecord() {return record;}
	/**学历*/
	public void setRecord(Integer[] record) {this.record = record;}
	/**证书*/
	public String[] getCertificate() {return certificate;}
	/**证书*/
	public void setCertificate(String[] certificate) {this.certificate = certificate;}

	/**工作单位*/
	public String[] getCompany() {return company;}

	public void setCompany(String[] company) {this.company = company;}
	/**工作*/
	public String[] getWork() {return work;}

	public void setWork(String[] work) {this.work = work;}
	/**职位*/
	public String[] getExposition() {return exposition;}

	public void setExposition(String[] exposition) {this.exposition = exposition;}
	/**离职原因*/
	public String[] getReason() {return reason;}

	public void setReason(String[] reason) {this.reason = reason;}
	/**工作起始时间*/
	public Date[] getWorkStart() {return workStart;}

	public void setWorkStart(Date[] workStart) {this.workStart = workStart;}
	/**工作起始时间*/
	public Date[] getWorkEnd() {return workEnd;}

	public void setWorkEnd(Date[] workEnd) {this.workEnd = workEnd;}

	//家庭成员

	/**姓名*/
	public String[] getFamilyname() {return familyname;}

	public void setFamilyname(String[] familyname) {this.familyname = familyname;}
	/** 关系*/
	public String[] getFamilyRelation() {return familyRelation;}

	public void setFamilyRelation(String[] familyRelation) {this.familyRelation = familyRelation;}
	/**联系方式*/
	public String[] getContact() {return contact;}

	public void setContact(String[] contact) {this.contact = contact;}
	/**年龄*/
	public Integer[] getFamilyage() {return familyage;}

	public void setFamilyage(Integer[] familyage) {this.familyage = familyage;}
	/**工作单位*/
	public String[] getFamilycompany() {return familycompany;}

	public void setFamilycompany(String[] familycompany) {this.familycompany = familycompany;}
	/**职位*/
	public String[] getFamilyposition() {return familyposition;}

	public void setFamilyposition(String[] familyposition) {this.familyposition = familyposition;}
}
